const Mock = require('mockjs')


const meterList = []

for (let i = 0; i < 20; i++) {
  meterList.push(Mock.mock({
    id: '@increment',
    device_number:"34010200100000123",
    settlement_volume:'36.5',
    flow_rate:'12',
    working_model:'空管模式',
    working_model_status:1,
    valve_status:0,
    leakage_alarm_status:0,
    status:1,
    create_time:+Mock.Random.date('T')
  }))
}

module.exports = [
  {
    url: '/meter/list',
    type: 'get',
    response: config => {
      return {
        code: 20000,
        data: {
          list:meterList,
          total:meterList.length
        }
      }
    }
  }
]

